<table width="100%" class="user_table">
  <tr align="center">
    <th>บริษัท</th>
    <th>ตำแหน่ง</th>
    <th>จำนวน</th>
    <th>รายละเอียด</th>
    <th>วันลงประกาศ</th>
    <th></th>
  </tr>
<%@jobs.each do |job|%>
  <%if job_match(job.id, session[:user_id])%>
  <tr align="center">
    <td align="left"><%begin%><a href="/users/company_profile/<%=job.user_id%>" target="_blank"><%=User.find(job.user_id).fname%></a><%rescue%><%end%></td>
    <td align="left"><%=job.name%></td>
    <td><%=job.total%></td>
    <td align="left"><%=job.description%></td>
    <td><%="#{job.created_at.day}/#{job.created_at.month}/#{job.created_at.year+543}"%></td>
    <td>
      <a href="/job/jobdetail/<%=job.id%>">Detail</a>
    </td>
  </tr>
  <%end%>
<%end%>
</table>